package com.ddwl.goods.mapper.bargain;

import com.ddwl.common.dao.mapper.TkMapper;
import com.ddwl.goods.model.bargain.BargainActivity;
import com.ddwl.schema.vo.goods.bargain.BargainActivityItemVo;
import com.ddwl.schema.vo.goods.bargain.BargainActivityVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author hemiaojun
 * @Date 2020/10/23 17:24
 */
@Repository
public interface BargainActivityMapper extends TkMapper<BargainActivity> {
    /**
     * 获取砍价活动商品列表信息
     * @return
     */
    List<BargainActivityItemVo> getBargainActivityItemList(@Param("shopId") String shopId);

    /**
     * 商户助力活动列表
     * @param activity
     * @return
     */
    List<BargainActivityVo> getList(@Param("activity") BargainActivity activity);

    /**
     * 店铺首页助力商品列表
     * @param shopIds
     * @return
     */
    List<BargainActivityItemVo> boostList(@Param("list") List<String> shopIds);

    /**
     * 批量修改库存
     * @param baList
     */
    void batchUpdateStock(@Param("list") List<BargainActivity> baList);
}
